package com.bluemoon.model.test.dbImort.visitor;

import com.bluemoon.model.test.dbImort.visitor.file.*;
import com.bluemoon.model.test.dbImort.visitor.po.ExtractResultSet;

/**
 * @author Jarod.Kong
 * @date 2021/1/13 13:16
 */
public class Extract2TxtVisitorManager<T> implements ExtractVisitor<T> {
    @Override
    public <T> ExtractResultSet<T> visitor(TextFile textFile) {
        System.out.println("已经是txt无需转换");
        return ExtractResultSet.empty();
    }

    @Override
    public <T> ExtractResultSet<T> visitor(PdfFile pdfFile) {
        System.out.println("pdf 2 txt");
        return ExtractResultSet.empty();
    }

    @Override
    public <T> ExtractResultSet<T> visitor(WordFile wordFile) {
        System.out.println("word 2 txt");
        return ExtractResultSet.empty();
    }

    @Override
    public <T> ExtractResultSet<T> visitor(PPTFile pptFile) {
        System.out.println("ppt 2 txt");
        return ExtractResultSet.empty();
    }

    @Override
    public <T> ExtractResultSet<T> visitor(ExcelFile excelFile) {
        return ExtractResultSet.empty();
    }


}
